import { MenuProps } from "antd";
type MenuItem = Required<MenuProps>["items"][number];

export const topRightItems = (onLogout: any): MenuItem[] => {
  return [
    {
      key: "1",
      label: (
        <a onClick={onLogout} rel="noopener noreferrer" href="/">
          退出登录
        </a>
      ),
      style: {
        marginLeft: 4,
        width: 80,
        textAlign: 'center',
      },
    },
  ];
};
